﻿using System;
using System.ComponentModel;
using Dapper.Contrib.Extensions;

namespace Topro.Entity.Tables
{
	/// <summary>
	/// 出库
	/// </summary>
	[Table("T_StockOut")]
	public class StockOut
    {
		/// <summary>
		/// 订单编号
		/// </summary>
		[ExplicitKey]
		[Description("订单编号")]
		public string OrderId { get; set; }
		/// <summary>
		/// 库位
		/// </summary>
		[Description("库位")]
		public string WarehouseUnitId { get; set; }
		/// <summary>
		/// 容器类型：空（1）实（0）
		/// </summary>
		[Description("容器类型：空（1）实（0）")]
		public int ContainerType { get; set; }
		/// <summary>
		/// 是否空容
		/// </summary>
		public int IsContainer { get; set; }
		/// <summary>
		/// 坐标
		/// </summary>
		[Description("坐标")]
		public int Coordinate { get; set; }
		/// <summary>
		/// 物料编号
		/// </summary>
		[Description("物料编号")]
		public string ProductId { get; set; }
		/// <summary>
		/// 物料编号
		/// </summary>
		[Description("物料名称")]
		public string ProductName { get; set; }
		/// <summary>
		/// 出库数量
		/// </summary>
		[Description("出库数量")]
		public int Quantity { get; set; }
		/// <summary>
		/// 出口
		/// </summary>
		[Description("出口")]
		public int StationNo { get; set; }
		/// <summary>
		/// 单据状态：待出库（10）/待入库（20）/已出库（30）/已入库（40）/作废（50）/已删除(-10)
		/// </summary>
		[Description("单据状态：待出库（10）/待入库（20）/已出库（30）/已入库（40）/作废（50）/已删除(-10)")]
		public int Status { get; set; }
		/// <summary>
		/// 备注
		/// </summary>
		[Description("备注")]
		public string Remark { get; set; }
		/// <summary>
		/// 时间戳
		/// </summary>
		[Description("时间戳")]
		public string TimeStamp { get; set; }
		/// <summary>
		/// 创建人
		/// </summary>
		[Description("创建人")]
		public int CreatedBy { get; set; }
		/// <summary>
		/// 创建时间
		/// </summary>
		[Description("创建时间")]
		public DateTime CreateTime { get; set; }
	}
}
